package com.zr.eim.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 停留点信息对象 eim_analysis_stay_point
 * 
 * @author peihang
 * @date 2022-10-21
 */
public class EimAnalysisStayPoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String personId;

    /** 停留点地址 */
    @Excel(name = "停留点地址")
    private String address;

    /** 经度 */
    @Excel(name = "经度")
    private Double longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double latitude;


    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 停留时长 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停留时长", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stayTime;

    /** 关联行程id */
    @Excel(name = "关联行程id")
    private Long tripId;

    /** 类型：1确诊/0密接 */
    @Excel(name = "类型：1确诊/0密接")
    private Long type;


    @Excel(name = "是否公示")
    private Integer ifShow;

    private Double distance;

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public Integer getIfShow() {
        return ifShow;
    }

    public void setIfShow(Integer ifShow) {
        this.ifShow = ifShow;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setLongitude(Double longitude)
    {
        this.longitude = longitude;
    }


    public Double getLongitude()
    {
        return longitude;
    }
    public void setLatitude(Double latitude)

    {
        this.latitude = latitude;
    }


    public Double getLatitude()
    {
        return latitude;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStayTime(Date stayTime) 
    {
        this.stayTime = stayTime;
    }

    public Date getStayTime() 
    {
        return stayTime;
    }
    public void setTripId(Long tripId) 
    {
        this.tripId = tripId;
    }

    public Long getTripId() 
    {
        return tripId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personId", getPersonId())
            .append("address", getAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("stayTime", getStayTime())
            .append("tripId", getTripId())
            .append("type", getType())
            .toString();
    }
}
